package com.xkstream.client.api.kt

import com.xkstream.client.api.API
import com.xkstream.client.base.BaseData
import com.xkstream.client.entity.Admin
import com.xkstream.client.entity.kt.MessagesData
import io.reactivex.Observable
import retrofit2.http.FieldMap
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

/**
 * Created by xiaoyi on 2017-11-2.
 */
interface MessageService {

    /**
     * 获取房管列表
     */
    @FormUrlEncoded
    @POST(API.MESSAGE_LIST)
    fun getMessageList(@FieldMap params: Map<String, String>): Observable<BaseData<MessagesData>>

    @FormUrlEncoded
    @POST(API.READ_MESSAGE)
    fun readMessage(@FieldMap params: Map<String, String>): Observable<BaseData<Any?>>
}